    {% if form %}
            <div class="panel-group" id="accordion">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">
        <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapseOne">
          申请详情
        </a><i class="indicator glyphicon glyphicon-chevron-down  pull-right"></i>
      </h4>
                    </div>
                    <div id="collapseOne" class="panel-collapse collapse in">
                        <div class="hr-line-dashed"></div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_ip.label }}</label>
                            <div class="col-sm-8">{{ form.vm_ip }}</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_hostname.label }}</label>
                            <div class="col-sm-8">{{ form.vm_hostname }}</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_ower.label }}</label>
                            <div class="col-sm-8">{{ form.vm_ower }}</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_system.label }}</label>
                            <div class="col-sm-8">{{ form.vm_system }}</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_bit.label }}</label>
                            <div class="col-sm-8">{{ form.vm_bit }}</div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_cpu.label }}</label>
                            <div class="col-sm-8">{{ form.vm_cpu }}</div>
                        </div>
                          <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_mem.label }}</label>
                            <div class="col-sm-8">{{ form.vm_mem }}</div>
                        </div>
                          <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_disk.label }}</label>
                            <div class="col-sm-8">{{ form.vm_disk }}</div>
                        </div>
                         <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_use.label }}</label>
                            <div class="col-sm-8">{{ form.vm_use }}</div>
                        </div>
                         <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_status.label }}</label>
                            <div class="col-sm-8">{{ form.vm_status }}</div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_cluster.label }}</label>
                            <div class="col-sm-8">{{ form.vm_cluster }}</div>
                        </div>


                        <div class="form-group">
                            <label class="col-sm-2 control-label">{{ form.vm_beizhu.label }}</label>
                            <div class="col-sm-8">{{ form.vm_beizhu }}</div>
                        </div>

                          <div  style="display: none" class="form-group">
                            <label   class="col-sm-2 control-label">{{ form.created_by.label }}</label>
                            <div  class="col-sm-8">{{ form.created_by }}</div>
                        </div>
                        <div class="hr-line-dashed"></div>

                         <div class="form-group" id="date">
                            <label class="col-sm-2 control-label">开始时间</label>
                            <div class="col-sm-8">{{form.vm_stime}}</div>

                        </div>
                        <div class="form-group" id="date1">
                         <label class="col-sm-2 control-label">结束时间</label>
                            <div class="col-sm-8">{{form.vm_endtime}}</div>
                            </div>
                    </div>
                    </div>
                </div>
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h4 class="panel-title">


    <div class="form-group">
        <div class="col-sm-12  col-sm-offset-5" style="margin-bottom:200px;">
            <button class="btn btn-white" type="submit" onclick="javascript:history.back(-1);">取消</button>
            <button class="btn btn-primary" type="submit">确定</button>
        </div>
    </div>
    {%else%}
    <p style="text-align:center;color:#FF0000;font-weight:bold;">{{ error }}</p>
    {%endif%}